from jinja2 import Template

data = {"name":"张三","age":"18"}
new_data = Template("my name is {{name}},my age is {{age}}").render(data)
print(new_data)